package com.example.demo.web.manage.convert;

import com.example.demo.web.manage.dto.UserDeptDto;
import com.example.demo.web.manage.model.UserDeptEntity;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * @author airhead
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserDeptConvert {
  UserDeptConvert INSTANCE = Mappers.getMapper(UserDeptConvert.class);

  UserDeptDto convert(UserDeptEntity bean);

  UserDeptEntity convert(UserDeptDto bean);
}
